@tool
class_name Cost_Any
extends Cost

@export var cost_singles:Array[Cost]

func check_cost(entity:Entity) -> bool:
	return cost_singles.any(func(s:Cost):return s.check_cost(entity))
func do_cost(entity:Entity,args:Dictionary = {}) -> bool:
	if not check_cost(entity):
		return false
	for s:Cost in cost_singles:
		if s.do_cost(entity,args):
			return true
	return false
